﻿<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！-->
    <title>学生惠后台管理系统</title>
    <link rel="stylesheet" href="/App/Admin/public/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="/App/Admin/public/css/jquery.datetimepicker.css"/>
    <link rel="stylesheet" href="/App/Admin/public/css/style.css"/>
</head>
<body>
<div class="mainBody">
    <include file="Public:left"/>
    <div class="main">
    <include file="Public:top"/>

        <div class="subNav">
            <span class="text"><i class="iconFont">&#xe600;</i>红包管理</span>
        </div>

        <div class="indexBox">
            <div class="con-det">
                <div class="row">
                    <div class="col-md-12">
                          <form action="{:U('Packet/index')}" method="post">
                            <table class="formTable">
                                <tbody><tr>
                                    <td class="name noBor">关键字</td>
                                    <td class="noBor">
                                        <input type="text"  name="sh_q"  value="{$shArray.sh_q}" class="inp form-control" placeholder="商铺号/商店名">
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name">日期</td>
                                    <td>
                                        <input type="text"   name="from_time" value="{$shArray['from_time']?$shArray['from_time']:''}"  class="inp time form-control datetimepicker">
                                        <input type="text"   name="to_time"   value="{$shArray['to_time']?$shArray['to_time']:''}"  class="inp time form-control datetimepicker">
                                    </td>
                                </tr>
                               <tr>
                                    <td class="name">区域</td>
                                    <td>
                                       <select  id="select_id5" class="inp address form-control" name="select_name5">
                                            <option selected="selected" value=''>省</option>
                                            <foreach name='listAddress'  item='item'>
                                            <option value="{$item['id']}" >{$item['name']}</option>
                                            </foreach>
                                        </select>
                                            <select id="select_id6"  class="inp address form-control" name="select_name6">
                                                <option selected="selected" value="">市</option>
                                             </select>
 
                                             <select  id="select_id7" class="inp address form-control" name="select_name7">
                                                <option selected="selected" value="">大学</option>
                                             </select>
                                            
                                            
                                    </td>
                                </tr>
                                <tr>
                                    <td class="name"></td>
                                    <td>
                                        <button class="btn btn-primary blue" type="submit">查询</button>
                                    </td>
                                </tr>
                                </tbody></table>
                        </form>
                    </div>
                </div>

                <div class="mt40 listBox">
                    <div class="listScroll">
                        <table class="table table-striped">
                            <tr>
                                <th>商铺号</th>
                                <th>店铺名</th>
                                <th>店主姓名</th>
                                <th>身份证号</th>
                                <th>手机号</th>
                                <th>银行卡号</th>
                                <th>开户行</th>
                                <th>开户行网点</th>
                                <th>户名</th>
                                <th>购买红包金额</th>
                                <th>购买红包数量</th>
                                <th>购买红包时间</th>
                                <th>剩余红包金额</th>
                                <th>剩余红包数量</th>
                                <th>已购红包总金额</th>
                                <th>已购红包总数</th>
                            </tr>
                              <foreach name="list" item="item" >
                            <tr>
                                <td>{$item.id}</td>
                                <td>{$item.shop_name}</td>
                                <td>{$item.keeper}</td>
                                <td>{$item.idcard}</td>
                                <td>{$item.phone}</td>
                                <td>{$item.bankcard}</td>
                                <td>{$item.bank}</td>
                                <td>{$item.bank_branch}</td>
                                <td>{$item.bank_card_keeper}</td>
                                <td>{$item.number_all_money}</td>
                                <td>{$item.number}</td>
                                <td>{$item.add_time|date='Y-m-d',###}</td>
                                <td>{$item.rest_num_money}</td>
                                <td>{$item.rest_num}</td>
                                <td>{$item.add_num_money}</td>
                                <td>{$item.all_num}</td>
                            </tr>
                             </foreach>
                        </table>
                    </div>
                    <nav aria-label="Page navigation">
                        <ul class="pagination fr">
                           {$page}
                        </ul>
                    </nav>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript" src="/App/Admin/public/js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="/App/Admin/public/js/jquery.datetimepicker.js"></script>
<script type="text/javascript" src="/App/Admin/public/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/App/Admin/public/js/time.js"></script>
<script type="text/javascript" src="/App/Admin/public/js/public.js"></script>


<script>
$("#select_id5").change(function(){
var checkValueOne=$("#select_id5").val(); //获取Select选择的Value

 $.post('{:U('ShopMange/select_address')}',{checkValueOne:checkValueOne},function(data){
               $("#select_id6").text(' ');
               $("#select_id6").append(data);
            
        });
});
</script>


<script>
$("#select_id6").change(function(){
var checkValueOne=$("#select_id6").val(); //获取Select选择的Value

 $.post('{:U('ShopMange/select_address')}',{checkValueOne:checkValueOne},function(data){
               $("#select_id7").text(' ');
               $("#select_id7").append(data);
            
        });
});
</script>

</body>
</html>








